Ju l 2 01 1 A Linear Time Algorithm for Seeds Computation
نویسندگان
چکیده
Periodicity in words is one of the most fundamental areas of text algorithms and combinatorics. Two classical and natural variations of periodicity are seeds and covers (also called quasiperiods). Linear-time algorithms are known for finding all the covers of a word, however in case of seeds, for the past 15 years only an O(n logn) time algorithm was known (Iliopoulos, Moore and Park, 1996). Finding an o(n log n) time algorithm for the all-seeds problem was mentioned as one of the most important open problems related to repetitions in words in a survey by Smyth (2000). We show a linear-time algorithm computing all the seeds of a word, in particular, the shortest seed. Our approach is based on the use of a version of LZ-factorization and non-trivial combinatorial relations between the LZ-factorization and seeds. It is used here for the first time in context of seeds. It saves the work done for factors processed earlier, similarly as in Crochemore’s square-free testing.
منابع مشابه
Ninja: Automated integrand reduction via Laurent expansion for one-loop amplitudes
We present the public C++ library Ninja, which implements the Integrand Reduction via Laurent Expansion method for the computation of one-loop integrals. The algorithm is suited for applications to complex one-loop processes. 1 ar X iv :1 40 3. 12 29 v2 [ he pph ] 2 1 Ju l 2 01 4
متن کاملApplying Semi-discrete Operators to Calculus
Ever since the early 1980’s, computer scientists have been using an algorithm named "Summed Area Table", also known as "Integral Image". This algorithm was shown to provide a tremendous computational gain, since it fits precisely to the needs of discrete geometry researchers, due to its discrete nature. It was first introduced in 1984 by Crow, and was reintroduced to the computer vision communi...
متن کاملOptimization of Mixed-Integer Non-Linear Electricity Generation Expansion Planning Problem Based on Newly Improved Gravitational Search Algorithm
Electricity demand is forecasted to double in 2035, and it is vital to address the economicsof electrical energy generation for planning purposes. This study aims to examine the applicability ofGravitational Search Algorithm (GSA) and the newly improved GSA (IGSA) for optimization of themixed-integer non-linear electricity generation expansion planning (GEP) problem. The performanceindex of GEP...
متن کاملGGMRES: A GMRES--type algorithm for solving singular linear equations with index one
In this paper, an algorithm based on the Drazin generalized conjugate residual (DGMRES) algorithm is proposed for computing the group-inverse solution of singular linear equations with index one. Numerical experiments show that the resulting group-inverse solution is reasonably accurate and its computation time is significantly less than that of group-inverse solution obtained by the DGMRES alg...
متن کاملJu l 2 00 6 Reducing the Computation of Linear Complexities of Periodic Sequences
The linear complexity of a periodic sequence over GF (p) play an important role in cryptography and communication([1]). In this correspondence, we prove a result which reduces the computation of the linear complexity and minimal connection polynomial of an arbitrary period un (where u|p−1, gcd(n, p −1) = 1) sequence over GF (p) to the computation of the linear complexities and minimal connectio...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2011